/*******************************************************************************
 * Copyright (c) 2011 Olexandr V. Shaposhnikov.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Olexandr V. Shaposhnikov - initial API and implementation and/or initial documentation
 *******************************************************************************/
package com.funkyroach.msvctch.msvc2008;

import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
import org.eclipse.core.runtime.PluginVersionIdentifier;

@SuppressWarnings("deprecation")
public class MSVC2008IsToolChainSupported implements
		IManagedIsToolChainSupported {

	private final boolean supported;

	public MSVC2008IsToolChainSupported() {
		supported = MSVC2008PathResolver.getMsvcHome() != null;
	}

	public boolean isSupported(IToolChain toolChain,
			PluginVersionIdentifier version, String instance) {
		return supported;
	}

}
